package com.dream.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

@Entity
@Table(name = "sys_user_honor")
/**
 * 一个用户多个荣誉
 * @author Administrator
 *
 */ 
public class Sys_User_Honor  extends AllId implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private SysUser sysUser;
	private Sys_honor sys_honor;

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public SysUser getSysUser()
	{
		return sysUser;
	}
	public void setSysUser(SysUser sysUser)
	{
		this.sysUser = sysUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_honor getSys_honor()
	{
		return sys_honor;
	}
	public void setSys_honor(Sys_honor sys_honor)
	{
		this.sys_honor = sys_honor;
	}
	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}
   
	
}
